package com.dycx.food.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dycx.common.dto.FileDTO;
import com.dycx.common.dto.handler.FileDtoListTypeHandler;
import com.dycx.common.entity.CommonDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;


@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "food_goods_main", autoResultMap = true)
public class GoodsMainDO extends CommonDO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Integer id;
    private Integer goodsClassId;
    private Integer brandId;
    private Integer designId;

    private String goodsName;

    private String specKey;

    /**
     * 库存
     */
    private Integer goodsStorage;

    /**
     * 货号
     */
    private Integer goodsSerial;
    private Integer goodsPrice;
    private Integer goodsVipPrice;
    private String goodsDescription;
    private String goodsDetail;

    private String thumbnail;

    @TableField(typeHandler = FileDtoListTypeHandler.class)
    private List<FileDTO> banner;

    /**
     * 是不上架
     */
    private Boolean isShelf;

    private Boolean isBatchUpdate;

    /**
     * 销量
     */
    private Integer sales;

    private Integer sort;
}
